package com.tengol.demo.design.pattern.creational.builder;

/**
 * 实际建造者，比如：课程实际构造者是课程老师
 *
 * @author dongrui
 * @date 2019/03/01
 */
public class CourseActualBuilder implements CourseBuilder{
    private Course course = new Course();

    public void buildCourseName(String courseName) {
        course.setCourseName(courseName);
    }

    public void buildCoursePPT(String coursePPT) {
        course.setCoursePPT(coursePPT);
    }

    public void buildCourseVideo(String courseVideo) {
        course.setCourseVideo(courseVideo);
    }

    public void buildCourseArticle(String courseArticle) {
        course.setCourseArticle(courseArticle);
    }

    public void buildCourseQa(String courseQa) {
        course.setCourseQa(courseQa);
    }

    public Course makeCourse() {
        return course;
    }
}
